package com.ohxwj.modules.web.service;

import com.ohxwj.modules.web.entity.WebArticleEntity;
import com.ohxwj.modules.web.entity.WebBannerEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018-04-16.
 */
public interface WebArticleService {

    public void insertWebArticle(WebArticleEntity webArticleEntity);

    public List<WebArticleEntity> queryArticles(Map<String, Object> params);

    public int queryTotal(Map<String, Object> params);

    public int updateWebArticle(WebArticleEntity webBannerEntity);

    public int deleteWebArticle(int id);

    public int updateWebArticleStatus(int id, int status);

    public WebArticleEntity loadArticleById(int id);

    /**
     *
     * @param next 1 大于 0 小于
     * @param articleId
     * @return
     */
    WebArticleEntity loadNextArticle(int next, int articleId, int menuId);

    public int updateWebArticleHit(int id);

    public List<WebArticleEntity> searchArticles(Map<String, Object> params);

    public int searchTotal(Map<String, Object> params);

    public void insertWebMenuArticle(int menuId, int articleId, int labelId);

    public List<WebArticleEntity> queryArticleByLabelId(int labelId);

    public List<WebArticleEntity> queryTeachers(Map<String, Object> params);

    public int queryTeacherCount(Map<String, Object> params);

    public int updateArticleLabel(int articleId, int labelId);
}
